projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
551539b
)
osm.c: ikey is returned as int
author
Bernd Zeimetz
<bernd@bzed.de>
Wed, 7 Jan 2009 14:11:11 +0000
(15:11 +0100)
committer
Bernd Zeimetz
<bernd@bzed.de>
Wed, 7 Jan 2009 14:11:11 +0000
(15:11 +0100)
Don't cast to char and back without a reason.
debian/patches/osm-char-int-cast-bug-fix
[new file with mode: 0644]
patch
|
blob
diff --git a/debian/patches/osm-char-int-cast-bug-fix
b/debian/patches/osm-char-int-cast-bug-fix
new file mode 100644
(file)
index 0000000..
9191555
--- /dev/null
+++ b/
debian/patches/osm-char-int-cast-bug-fix
@@ -0,0
+1,24
@@
+osm.c: ikey is returned as int
+
+Don't cast to char and back without a reason.
+
+--- a/osm.c
++++ b/osm.c
+@@ -443,7 +443,7 @@ osm_features_init(void)
+ }
+
+
+-static char
++static int
+ osm_feature_ikey(const char *key)
+ {
+ int result;
+@@ -535,7 +535,7 @@ osm_node_tag(const char *args, const cha
+ const char **avp = &attrv[0];
+ const char *key = "", *value = "";
+ char *str;
+- char ikey;
++ int ikey;
+
+ while (*avp) {
+ if (strcmp(avp[0], "k") == 0)